//
//  SettingCustomControl.m
//  Honda
//
//  Created by Xiaolong Zhang on 13-4-23.
//  Copyright (c) 2013年 HeninHoo. All rights reserved.
//

#import "SettingCustomControl.h"

@implementation SettingCustomControl
@synthesize iconView    =   _iconView;
@synthesize nameLab     =   _nameLab;

- (void)dealloc
{
    SafeRelease(_nameLab);
    SafeRelease(_iconView);
    [super dealloc];
}

- (UIImageView*)iconView {
    if (nil == _iconView) {
        _iconView = [[UIImageView alloc] initWithFrame:CGRectMake(20, 20.25, 27.5, 29)];
        _iconView.backgroundColor = [UIColor clearColor];
        
        [self addSubview:_iconView];
    }
    
    return _iconView;
}

- (UILabel*)nameLab {
    if (nil == _nameLab) {
        _nameLab = [[UILabel alloc] initWithFrame:CGRectMake(68, 25, 150, 20)];
        _nameLab.backgroundColor = [UIColor clearColor];
        _nameLab.textAlignment = NSTextAlignmentLeft;
        
        [self addSubview:_nameLab];
    }
    
    return _nameLab;
}

- (void)layoutCustomControlSubViews {
//    self.iconView.frame = CGRectMake(35, 50, 55, 50);
//    self.nameLab.frame = CGRectMake(130, 50, 300, 50);
}


@end
